package dfbz.demo02;

public class Game {
    private int v;
    private int num;

    public Game(int num,int v) {
        this.num = num;
        this.v = v;
    }
    public void guess(){
        if(v>num){
            System.out.println("小了");
        }else if (v<num){
            System.out.println("大了");
        }else {
            System.out.println("你答对了");
        }
    }
}
